﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace Mode
{
    public  class ExamDataManage
    {
        //(单项选择题)长度(0--没题)
        public int  topicLen1{get;set;}
        //总分数
        public int topicscore1 { get; set; }
        //(多项选择题)长度(0--没题)
        public int topicLen2{get;set;}
        //总分数
        public int topicscore2 { get; set; }
        //(判断题)长度(0--没题)
        public int topicLen3{get;set;}
        //总分数
        public int topicscore3 { get; set; }
        //(填空择题)长度(0--没题)
        public int topicLen4{get;set;}
        //总分数
        public int topicscore4 { get; set; }
        //(问答题题)长度(0--没题)
        public int topicLen5{get;set;}
        //总分数
        public int topicscore5 { get; set; }
        //(打字题题)长度(0--没题)
        public int topicLen6{get;set;}
        //总分数
        public int topicscore6 { get; set; }
        /// <summary>
        /// 公共信息
        /// </summary>
        public ExamCommInfo comminfo { get; set; }

        /// <summary>
        ///  单项选择题考题
        /// </summary>
        public List<ExmTopic> topic1 { get; set; }

        /// <summary>
        ///  (多项选择题)
        /// </summary>
        public List<ExmTopic> topic2 { get; set; }

        /// <summary>
        ///  判断题)
        /// </summary>
        public List<ExmTopic> topic3 { get; set; }

        /// <summary>
        ///  (填空择题
        /// </summary>
        public List<ExmTopic> topic4 { get; set; }

        /// <summary>
        ///  问答题题)
        /// </summary>
        public List<ExmTopic> topic5 { get; set; }

        /// <summary>
        ///  打字题  没有答案
        /// </summary>
        public List<ExmTopic> topic6 { get; set; }
       
    }

    /// <summary>
    /// 考试公共信息
    /// </summary>
    public class ExamCommInfo
    { 
        /// <summary>
        /// 考场ID
        /// </summary>
        public int examid{get;set;}
        /// <summary>
        /// 考场名
        /// </summary>
        public string examname{get;set;}
        
        public int userid{get;set;}
        public string username{get;set;}
        public string phone { get; set; }
        public string department { get; set; }
        public string workcode { get; set; }
        public string email { get; set; }
        public int modeid{get;set;}
        public string modename{get;set;}
        /// <summary>
        /// 总题目数
        /// </summary>
        public int totaltopic{get;set;}
        /// <summary>
        /// 总分数
        /// </summary>
        public int totalscore{get;set;}
       
        /// <summary>
        /// 多分钟
        /// </summary>
        public int totaltime{get;set;}

        /// <summary>
        /// 划分小时
        /// </summary>
        public int totalH { get; set; }
        /// <summary>
        /// 划分分钟
        /// </summary>
        public int totalM { get; set; }
     
    }

    /// <summary>
    /// 考题
    /// </summary>
    public class ExmTopic {
        /// <summary>
        /// 
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 题目
        ///无论,  单选,多选,判断, 填空,问答,打字
        ///的题,都在这里录入.
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 题目的类型
        ///单选 = 1 多选 = 2 判断 = 3 填空 = 4 问答 = 5打字 = 6
        /// </summary>
        public int type { get; set; }

        /// <summary>
        /// 每题的分数
        /// </summary>
        public int score { get; set; }
    
        /// <summary>
        /// 答案列表
        /// </summary>
        public IList<TopicAnswer> answer{get; set;}
    }

    /// <summary>
    /// 考题答案
    /// </summary>
    public class TopicAnswer {
        public int id { get; set; }

        public string answer { get; set; }

        public int right { get; set; }

        public int code { get; set; }

        public DateTime date { get; set; }

        public int topic { get; set; }
    }

    /// <summary>
    /// 考生答题信息子表
    /// </summary>
    public class reply_info {
        public int answerid { get; set; }
        public string reply { get; set; }
    }

    /// <summary>
    /// 考生答题信息
    /// </summary>
    public class sheet_reply {
        public int topic { get; set; }
        public int topicType { get; set; }
        public int score { get; set; }
        public List<reply_info> replyList{get;set;}
    }
}
